package com.example.xunai.service.ai;

import com.example.xunai.dto.request.ai.ChatRequest;

import java.util.List;

/**
 * 批量聊天服务接口
 */
public interface BatchChatService {

    /**
     * 批量聊天请求
     */
    List<String> batchChat(List<ChatRequest> requests);

    /**
     * 批量聊天请求（带回调）
     */
    void batchChatAsync(List<ChatRequest> requests, BatchChatCallback callback);

    interface BatchChatCallback {
        void onSuccess(int index, ChatRequest request, String response);
        void onError(int index, ChatRequest request, Exception e);
        void onComplete();
    }
}